package demo07;

public class Test01 {
    public static void main(String[] args) {
        int[]arr={88,96,97,74,90,58,77,90,99};
        int min=arr[0];
        int sum=0;
        for (int i = 0; i < arr.length; i++) {

            if (arr[i]<min){
                min=arr[i];
            }

        }
        for (int i = 0; i < arr.length; i++) {
            sum+=arr[i];
        }
        System.out.println((sum-min)/(arr.length-1));
    }
}
